﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$sitename} - 用户登录</title>
{include file="header"/}
</head>
<body>
<!-- // sign-header end -->
<div class="layout" id="sign-content">
		<div class="ui-box ui-qire sign-focus" id="login-box">
		<div class="logo"><a href="{$siteurl}" title="{$sitename}"></a></div>
			<div class="ui-title fn-clear">
				<span>还没有{$sitename}会员帐号？请<a href="{:zanpian_user_url('user/reg/index')}">注册成{$sitename}会员</a></span>
                <h2>{$sitename}会员登录</h2>
          </div>
			<div class="ui-cnt fn-clear">
				<div class="ui-form sign-primary">
				  <form id="loginform"  method="post" onsubmit="return false;">
					<div class="ui-form-item fn-clear">
						<label for="username" class="ui-label w100">您的帐号：</label>
						<input type="text" name="username" class="ui-input w220" value="" />
                        <p class="onShow ui-message">用户名、邮箱、帐号</p>
					</div>
					<div class="ui-form-item fn-clear">
						<label for="password" class="ui-label w100">密码：</label>
						<input type="password" id="password1" name="password" maxlength="20" class="ui-input w220"value="" />
						<p class="ui-message" id="password1Tip">6-16个字符</p>
					</div>
           {notempty name="userconfig['user_code']"}         
          <div class="ui-form-item fn-clear" id="validate-code">
            <label for="validate" class="ui-label w100">验证码：</label>
            <div class="ui-form-block w120">
              <input type="text" id="validate1" name="validate" maxlength="10" class="ui-input w110" value="">
              <p class="validate-code-btn">看不清? <a href="javascript:void()" id="regverimg">换一张</a></p>
            </div>
            <img src="{:zp_url('user/validate/verify','',false,false)}" id="regverimg" alt="点击图片更换验证码" title="点击图片更换验证码">
            <p class="onShow ui-message" id="validate1Tip" style="">输入上图字母</p>
          </div>
          {/notempty} 
					<div class="ui-form-item ui-form-checkbox fn-clear">
						<label class="ui-label w100">
							&nbsp;
						</label>
						<div class="ui-form-block w220">
							<label for="agreement" class="ui-label-checkbox">
                            <input type="hidden" name="jump" value="1"/>
                            <input type="checkbox" name="cookietime" id="cookietime" checked="checked" value="2592000"><span style="color: #666;">下次自动登录</span></label>
							<a href="{:zanpian_user_url('user/login/forgetpwd')}">忘记密码了？</a>
						</div>
					</div>
					<div class="ui-form-item fn-clear">
						<label class="ui-label w100">
							&nbsp;
						</label>
							<label class="ui-label w100">&nbsp;</label>
							<input type="submit" id="loginbt" class="ui-button w220" value="登录">
					</div>
                    </form>
				</div>
				<!-- // ui-form#sign-primary end -->
 <div id="sign-app">
      	<div class="sign-app-list">
      		<h5>你还可以用以下方式直接登录：</h5>
      		<ul class="item login-list clear blue"> 
	           {if condition="(!empty($snsconfig['api_qq_key'])) and (!empty($snsconfig['api_qq_secret']))"}
	      			<li style="margin-right:14px;">
						<a href="{:zanpian_user_url('user/snslogin/qq')}"></a>
					</li>
	 			{/if}  
	 			{if condition="(!empty($snsconfig['api_weibo_key'])) and (!empty($snsconfig['api_weibo_secret']))"}
	      			<li style="background-image:admin_url({$apicss}user/new/images/weibo_login.gif)">
	                	<a href="{:zanpian_user_url('user/snslogin/weibo')}"></a>
	               	</li>
	 			{/if}   
			</ul>
      	</div>
      </div>
				<!-- // sign-app end -->
			</div>
		</div>
</div>
<script type="text/javascript" src="{$apicss}user/new/js/read.js"></script>
<script language="javascript" src="{$apicss}user/new/js/regvaild.js" type="text/javascript"></script>
{include file="footer"/}
</body>
</html>